<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/22/022
 * Time: 13:50
 */

namespace app\Lib\Model\Tag\StyleTag;


class GetInfo
{
    private $styleTag;
    public function __construct(StyleTag $styleTag)
    {
        $this->styleTag = $styleTag;
    }

    public function run(){
        $model = $this->styleTag;
        $data = [
            'id'=>$model->getTagId(),
            'tagName'=>$model->getTagName(),
            'imgId'=>$model->getImgClass()->getImgId(),
            'imgUrl'=>$model->getImgClass()->getFilePath(),
            'imgName'=>$model->getImgClass()->getFilename(),
        ];
        return $data;
    }
}